import request from '@/utils/request'

// 查询课程附件列表
export function listCourseFile(query) {
  return request({
    url: '/exam/courseFile/list',
    method: 'get',
    params: query
  })
}

// 查询课程附件详细
export function getCourseFile(fileId) {
  return request({
    url: '/exam/courseFile/' + fileId,
    method: 'get'
  })
}

// 新增课程附件
export function addCourseFile(data) {
  return request({
    url: '/exam/courseFile',
    method: 'post',
    data: data
  })
}

// 修改课程附件
export function updateCourseFile(data) {
  return request({
    url: '/exam/courseFile',
    method: 'put',
    data: data
  })
}

// 删除课程附件
export function delCourseFile(fileId) {
  return request({
    url: '/exam/courseFile/' + fileId,
    method: 'delete'
  })
}
